package cn.uexpo.lhz.feign.fallback;

import cn.uexpo.lhz.feign.TestFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author 小坏
 * @Date 2020/9/18 17:18
 * @Version 1.0
 * @program: 父工程 renren-fast 万物起源之地
 */
@Slf4j
@Component
public class TestFeignFallback implements TestFeignService {
    @Override
    public List<Integer> listA() {
        log.info("TestFeignFallback,熔断方法被调用");
        List<Integer> objects = new ArrayList<>();
        objects.add(404);
        return objects;
    }
}
